package org.monkey.example.generate.entity.form;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.monkey.common.cbs.entity.form.BaseAddForm;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel
@NoArgsConstructor
@AllArgsConstructor
public class GenerateTestAddForm extends BaseAddForm {
  @ApiModelProperty("动物年龄")
  private Integer animalAge;
  @ApiModelProperty("动物年龄")
  private String animalName;
  @ApiModelProperty("描述")
  private String description;
  @ApiModelProperty("总价")
  private Double totalAmount;
  @ApiModelProperty("动物数量")
  private Long count;
  @ApiModelProperty("发送时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date sendDate;
  @ApiModelProperty("录入时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date inputTime;
  @ApiModelProperty("范围")
  private Float range;
}
